Computes the LU factorization of a square matrix such that .
The N-by-N matrix to factor.
The factored form of the matrix.